package pers.xuehongyan.useat.server.exception;

import org.springframework.http.HttpStatus;
import org.springframework.lang.NonNull;

/**
 * @author xuehongyan
 */
public abstract class ServiceException extends Exception {
    public ServiceException(String cause) {
        super(cause);
    }

    /**
     * get expected HTTP status of exception
     * @return HttpStatus
     */
    @NonNull
    public abstract HttpStatus getHttpStatus();
}
